package aps

import glory.xxd.ConsumerUtil
import glory.xxd.Utils

class SENDLOTINFOController {


    def commentService
    /**
     * 扫入批次返回
     */
    def index() {
        print(params)
        def logUUID = params.logUUID?:Utils.getUUID()
        def json
        def xmlReturn = ConsumerUtil.getQueueMsg(logUUID,"jms.queue.EAP.REPLY.Client")
        if(xmlReturn){
            xmlReturn = xmlReturn[0]
            json = Utils.getJsonByXML(xmlReturn,"Request/.Body")
        }
        render json
    }
}
